<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-position" class="control-label col-xs-12 col-sm-2">{:__('Position')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <input id="c-position" data-rule="required" data-source="adposition/index" class="form-control selectpage" name="row[position]" type="text" value="{$row.position}">

        </div>
    </div>
    <div class="form-group">
        <label for="c-app_image" class="control-label col-xs-12 col-sm-2">{:__('App_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-app_image" class="form-control" size="50" name="row[app_image]" type="text" value="{$row.app_image}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-app_image" class="btn btn-danger plupload" data-input-id="c-app_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-app_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-app_image" class="btn btn-primary fachoose" data-input-id="c-app_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-app_image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-app_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-url" class="control-label col-xs-12 col-sm-2">{:__('Url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-url" class="form-control " rows="5" name="row[url]" cols="50">{$row.url}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-param_id" class="control-label col-xs-12 col-sm-2">{:__('Param_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-param_id"  class="form-control" name="row[param_id]" type="text" value="{$row.param_id}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-login" class="control-label col-xs-12 col-sm-2">{:__('Login')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-login" class="form-control selectpicker" name="row[login]">
                {foreach name="loginList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.login"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-app_class_id" class="control-label col-xs-12 col-sm-2">{:__('App_class_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-app_class_id" data-rule="required" data-source="appclass/index" class="form-control selectpage" name="row[app_class_id]" type="text" value="{$row.app_class_id}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-sort" class="control-label col-xs-12 col-sm-2">{:__('Sort')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sort" class="form-control" name="row[sort]" type="number" value="{$row.sort}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-begin_time" class="control-label col-xs-12 col-sm-2">{:__('Begin_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-begin_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[begin_time]" type="text" value="{$row.begin_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-end_time" class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="{$row.end_time|datetime}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
